import request from '@/utils/request'

// 获取乐器列表
export function getInstrumentList() {
  return request.get('/instrumentCategory/list')
}

// 新增乐器
export function addInstrument(data) {
  return request.post('/instrumentCategory/insert', {
    icName: data.name,
    description: data.description,
    status: data.status
  })
}

// 更新乐器
export function updateInstrument(data) {
  return request.post('/instrumentCategory/update', {
    id: data.id,
    icName: data.name,
    description: data.description,
    status: data.status
  })
}

// 删除乐器
export function deleteInstrument(ids) {
  return request.get('/instrumentCategory/delete', ids)
}
